home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / var / lib / dpkg / info / hotkey-setup.prerm < prev    next >
Encoding:
Text File  |  2009-04-06  |  648 b   |  27 lines

  1. #!/bin/sh
  2.  
  3. set -e
  4.  
  5. if [ "x$1" = xfailed-upgrade ] && [ "x$2" = x0.1-23ubuntu10 ]
  6. then
  7.     exit 0
  8. fi
  9. if dpkg --compare-versions "$2" lt "0.1-19"; then
  10.     # setkeycodes exits with error sometimes (#437360) and has
  11.     # completely broken the upgrade path for some users.
  12.     # remove the saved state file if installed package prerm
  13.     # maintainer script fails.
  14.     rm -f /var/run/hotkey-setup
  15. fi
  16.  
  17. # Automatically added by dh_installinit
  18. if [ -x "/etc/init.d/hotkey-setup" ]; then
  19.     if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
  20.         invoke-rc.d hotkey-setup stop || exit $?
  21.     else
  22.         /etc/init.d/hotkey-setup stop || exit $?
  23.     fi
  24. fi
  25. # End automatically added section
  26.  
  27.